/*
 * Filename BoardBatch.java 2021年11月01日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.api.dto;

import cn.hutool.core.date.DateUtil;
import lombok.Getter;

import java.time.LocalDateTime;

/**
 * 板子批次
 *
 * @author wyc
 * @since 2021/11/01 10:25
 **/
@Getter
public class BoardBatch {
    private final LocalDateTime productDate;
    private final int batch;

    public BoardBatch(LocalDateTime productDate, int batch) {
        this.productDate = productDate;
        this.batch = batch;
    }

    public String dateToString() {
        return DateUtil.format(productDate, "yyMM");
    }
}